LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

#这个主要用于是确定本脚本什么情况下参与编译： eng、user or userdebug 版时候参与编译? optional值所有版本都参与编译
LOCAL_MODULE_TAGS   := optional

 #编译的java文件文件路径
LOCAL_SRC_FILES := $(call all-java-files-under, app/src/main/java)
 #需要编译的 AndroidManifest.xml 文件
LOCAL_MANIFEST_FILE := app/src/main/AndroidManifest.xml
 #编译的资源文件文件路径
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/app/src/main/res
 #编译出的apk的名称
LOCAL_PACKAGE_NAME := DflSysteUi

 #依赖的静态Java库
LOCAL_STATIC_JAVA_LIBRARIES := ViewLiveDataLib
LOCAL_STATIC_JAVA_LIBRARIES += dependency_jar_lib
LOCAL_STATIC_JAVA_LIBRARIES += dependency_jar_lib2

#依赖的静态aar库
LOCAL_STATIC_JAVA_AAR_LIBRARIES := dependency_aar_lib
LOCAL_STATIC_JAVA_AAR_LIBRARIES += dependency_aar_lib2


 #apk 签名
LOCAL_CERTIFICATE := platform
LOCAL_PRIVATE_PLATFORM_APIS = true

LOCAL_PROGUARD_ENABLED := disabled
LOCAL_PROGUARD_FLAG_FILES := proguard-rules.pro
include $(BUILD_PACKAGE)


include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := dependency_jar_lib:app/libs/dependency_jar_lib.jar
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := dependency_jar_lib2:app/libs/dependency_jar_lib2.jar

LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += dependency_aar_lib:app/aars/dependency_aar_lib.aar
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES += dependency_aar_lib2:app/aars/dependency_aar_lib2.aar
include $(BUILD_MULTI_PREBUILT)

#下级子目录
#include $(CLEAR_VERS)
include $(call all-makefiles-under,$(LOCAL_PATH))